package com.codefish.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codefish.entity.OutMoneyType;

import java.util.List;

/**
 * 支出类型
 *
 * @author codefish
 * @email cool_fish@aliyun.com
 * @date 2021-07-09 11:32:08
 */
public interface OutMoneyTypeService extends IService<OutMoneyType> {

    /**
     * 新增单个
     * @param outMoneyType
     * @return
     */
    Integer saveOne(OutMoneyType outMoneyType);

    /**
     * 修改单个
     * @param outMoneyType
     * @return
     */
    boolean updateOne(OutMoneyType outMoneyType);

    /**
     * 删除单个
     * @param id
     * @return
     */
    boolean deleteOne(Integer id);

    /**
     * 分页条件查询
     * @param familyId
     * @param pageNo
     * @param pageSize
     * @return
     */
    IPage<OutMoneyType> getPageByParams(Integer familyId, Integer pageNo, Integer pageSize);

    /**
     * 根据id批量查询
     * @param outMoneyTypeList
     * @return
     */
    List<OutMoneyType> selectListByIds(List<Integer> outMoneyTypeList);
}

